Added some manipulation functions and a tag matcher.