Dispense algorith implemented