Add standard function for getting and setting gateway