Added cron function and processing of cron in promote