Added the ability to set up a gateway for eoc