BPLayer and digit recognition - before debug