Added more debug prints.