Converting PromoteSlave to RPC.