Added the ability to query for flag state changes