Change the interface to return a list of flags