Made module multi-threaded, add pool_size config, and change writeConcern->write_concern for consistency