Added some debugging prints.