Changed functioning of push and pop