Make flags introspectable.

Change-Id: Ie95f3f2b57b9552ea7bbc26af7e281f1b6c22293