I think that `machines.add(machine);` can replace this line(s)