Messy, but now knows if screen is off