Changed update commands to write to logfile when used to address issues with pipes.