RPC mechanism snippet