Added an option to set the max length of all tags.