Updated config and moved cron functionality to dedicated class.