Make sure points is casted as int.