Updated networking to use NIO

Not necessary anymore.