Improves handling of the log file variable