Revert back to original method and check if the divisor is 0.