Divide by zero fixed and more balancing