Fixed KN. I find myself falling for the casted int and double issues in
divisions and multiplications...