Added print debug code