Added pop functionality