Now handled two sets of tags and writes them. Onwards!