Added lockout timer to when screen locks or dims.