Instead of the default `add` and `remove` functions for the frames map, use `add_new` and `remove_contained` for when it is known that a value is or isn't in the map already. This should be slightly more efficient (and just better practice overall).
Instead of the default `add` and `remove` functions for the frames map, use `add_new` and `remove_contained` for when it is known that a value is or isn't in the map already. This should be slightly more efficient (and just better practice overall).