Adding divisor function to toolbox