A robust battery of tests was used to assess the cognitive domains of attention , memory , mood , visual-spatial skills , motor ability , processing speed , and executive functioning @ days preoperatively and postoperatively at @ weeks and @ months .