Add pop function.