Added tag-selection functionality.