Add proportion detection