Added the ability to reduce the fraction.