Script 'schedule': simplify code a bit.