Added option to prevent sleep on tablets