Refactored scheduling of alarms to be more reliable
Implemented wakelock for background update service