Debugging in progress (3); added print statements