Added log file option