Simple RPC implementation