Add POP instructions where necessary