Added Time Constraint, fixed showQuantity