Fixed error

Accidentally deleted a line during conversion that cause division and
modulus to compute incorretly.
Deleted console logs