Added some debug prints.