Adding stack trace function, variable name resolving