Add support for filters when retrieving related names