CronJob dependencies added, moved and cleaned code