Added tag name check.