Added a function to put the display to sleep
Added the override functionality