Don't backtrack further up the stack than really needed.