Change function to allow modification of log file.