Changed input param points to data