Added tesseract function wrapper