Added stack class, reversed trace