Made CSRouter multi-threaded