Adding a main server thread that communcates between all other threads.