Merge "Run alarms on a custom thread."