Adding some debug output to trace bug in realtime