Put the old list code in oldCode