addLocations now uses next category instead of index.