Minor improvements to Mach utilities and ScheduledActionTest