Add error reporting to add_points()