Better check for zeros before dividing