Used threads with replsetadd and replsetremove, fixed latency issue