Use the StackTrace type instead of StackFrame