Added a base class for interacting with the RPC interface