Add operator[] to manipulate flagregister