Quantity of items is now properly accounted for.

Fixes #5. Quantity of items added wasn't being used.