Added log output file option