Added optional printlnDebug mode