Adjusting scripts to better allow the cron to run correctly