Replaced flags with attributes.