Added nesting level support for words.