Updated to support percentage.