Script 'schedule' is rewritten from scratch. For now, only the output in format 'term' is supported.