Incorporate API changes part 1: write -> print