Why the `gateway` param here? Doesn't seem to be used in the code?