Moved most of pop_items