Added auto sleep at midnight