Modified domain division, added range division