Made text extraction properly configurable.