Adding debug print statements