Made small changes to arithmetic.