Removed print and put debug messages