Added conditionals for doing transformations on polite numbers.