How Cognitive Difficulties Affect Learning