Fixed communication being not thread safe.