Now checks for divide by zero

So much for checking your code.