Renamed some variables to ease understanding of functionality.
Changed feedback to show properly if no flags were updated.
Updating flags was manipulating the same set that was supplied. Changed so it makes a new set.