Updates to get ESMs working on an wakeup alarm.