Make gateway class variable