Add handling division by zero.