Adding an option to specify a log file