Add duplication check and debug digits recognization bits