Modified source code to fit alternation of protocol specification.