Use a single list to track which flags are allowed and possible. Change-Id: I51c50b118ae3100aa6083e1782b9aa53efd6f614