Make use of GH_TUPLE, avoid implementation details, and turn this into a form that everybody understands.