Fix divisor calculation and configuration from previous commit, thanks sn9