Allows reconstructing state that was passed through rpcs.