Avoid "maximum function nesting level" error.