Fatigue impairs cognitive function