Start to implement clone
Make subMachines more robust