Added log file capability