Migrated add_to_log() to events
Migrated cron to task