Add threads and server