Refactor the touch test, keep the screen on