Added a basic RPC interface