Reworked scm_divide