Add flattener