Added support for creating the current text selector.