Changed most instances of "remote_version" to "protocol_version", and