Debugging in progress; added print statements