Main activity now prevents the screen from turning off.