Added thread, ability to define screen auto-off