## Pass in response details as an object, rather than separate arguments.