Imporved DebugFile