Changed implementation single thread/connection object