Rebuilt the daemon to use multithreading for network processing