Adding option for an optimize cronjob

Added option to specify whether an optimization cronjob is set