Done with structure of gateway.