The outcome measures were global cognitive function , memory function , executive function , and brain activation ( measured using functional magnetic resonance imaging ) associated with visual short-term memory .