Exploring phylogeny to find the function of sleep