Modded log file permissions. Modified Script to log time of execution.