Added stackcounter