Added the set_machine method.