Fixed stupid bug in SetNextAlarm (was usingUpdateCoreTimer whcih in fact no suitable)