Added start of protocol handling.