An attempt to support different protocol versions