Added support for ocr