Adding debug prints.