New protocol again

FIxed so it kinda works.
More work can be done to make it more stable.