Altered list loop from remove to pop