Alter tow function, list.revome to list.pop.