Changed sleep for brightness change