Added check to only add items that have not been cancelled.