Added print debug statements