New study finds why sleep is important