Avoid cyclic recursion when printing results