Added better debug output