Script 'schedule' was completely re-written.