Add get_flags method to access all flags