Folding fractions during simplification.