Adds parcing and threading to rpc