Isn't this going to have the wrong type now that you've changed the type of `points`?