Adding Debugging Code