Added debugging prints.