Use the function rather than the frame when determining a loop edge, the frame doesn't allow for recursive traces