Debug print statements added