Added support for division-by-zero errors.