Updated to use the revised API: 'machine' is now 'machines' and an array.