Current code assumes integer scale factors. We will need to ensure that non integer scale factors don't cause glitches.