Add a flags object.