Added throw for divide by zero.