Implemented the lock builder into the connection driver.