Added print statement to write_points method