Add index to points. Remove returnValue