Rewriting networking. Added netty