Switched server to one thread per connection