Add flag as attribute.