Change List to queue