Could this use the `credential` method on Agent?