Added a 2nd parameter, newPos

Added a 2nd parameter, newPos, so a new point isn't necessarily created.