Added option to keep application awake via config.xml