It doesn't feel right to have to import the `machine` pkg here. Could we put the `ResourceTuple` struct in a new pkg?