Add support to detect bidirectional level.