Compactify the UML script