Completes buildMachineDefinition.