Moved some RPC functions to base library.