Added ability to change rounding rules.