Created an function to bind providers and gateways.