Added debug stream print method