Added the stack structure