Added constant folding.