Reworked harvest function for cron.