Steps towards resident compilation, work on RPC.