Added \n to writeDebug