Adjusted front end to get modal working with cron.