Added the network server and made this all usable from C++