Add `getFields` convenience method.