Implements NIOServer
Simple changes in client side