The function of consciousness is to solve problems of adaptation.