Pass protocolVersion to function execution