Add pop functionality