Do not record when in recursion.