Use concurrent map in output conneciton.