Using a fold for the win