Removed unnecessary debug prints.