Add optional depth limit to forwardtrace