Changes added for Stack related problems