Updated alarm to use ELAPSED_REALTIME_WAKEUP