Added app nap prevention code.