Recommendation to use the PreventSleep API