Debugging in progress (4); added print statements