Added the custom gateway (still a work in progress).