Added stack clearing method