Fixes to websocket stuff. Added primative update.