Add threadlocal to the Result.