Added debug log file support