Added new detection mode and new dumb mode