More work on writing out new tags.