Added a simpler version for eqaully spaced points