Made buffer shared.