Added self-pining to stop the app from hibernating