Added RPC Function