Added percentage detection.