Added print debug messages