Add support for conditionally extracting the text data