Implemented connection pooling.