Added more code into the cube world protocol.