Added code to create points.