added createNewMachine() functionality