Added Debugging Functionality

.