Refactor code so that we support more CRON definitions and provide means to extend them