Updated so that log file option id optional.