Custom bit detector.