Added the functionality that the quantity is converted to an integer at
the factory level