More logging and some depug for RPC.