Added network functionality to automatically serialise and deserialize protocol buffers