Added percentage logic.