Preoperative cognitive dysfunction is related to adverse postoperative outcomes in the elderly.