Adds support for inputting tag expressions and improved chaining ordering