Added overloads for AddFlags, RemoveFlags, and SetFlags to change user-defined flags as well