Adapt detection to ratio #40