Add part of add machine function