Made gateway compatible with parent class.