Added support for "Loops" with flat metamodels