Basic setup for scheduler and cron task