These functions will (indirectly) be called by the main rpc server and can no longer stay conditionally compiled.