Changed so that scripts only write to log on weekly or monthly runs since they otherwise floods logfile.