Wrote server thread to spawn workers