Removed some code duplication.
added example cron format