Added Debugging Code