Add a nesting limit