Refining protocl according 1.2 spec. Way more to do.