Refactored selected tags to handle faceting.