These last two lines are probably not needed as 'foo' is always the first element.