Use pop instead of get and delete