Made Slave multi-threaded.