Added code for special stack