Hi Thank you gentlemen for sharing your knowledge. It makes perfect sense and using seq_along prevents errors that could be perplexing and time consuming to discover. Thank you Carl Sutton