Removed the unused gridPoints argument.