Solving the problem of sleep