It is moderated by emotional cues. If someone is doubting themselves, they create a self-fulfilling prophecy and are more unlikely to do a bad job. Also, their productivity is affected, because they spend more time doubting themselves. However, if they are feeling pride or enthusiasm, they will work more quickly and be more confident.