Improving stack events output