This was screwing with sleep mode