                 
                 // Checking the AIs by it's identifier and passing it to the Barcode Parser to get the value and cut the data
                 var foundOne = false
-                for (key, applicationIdentifier) in applicationIdentifiers {
+                for (_, applicationIdentifier) in applicationIdentifiers {
                     // Exclude the gtinIndicatorDigit, because it get's added later for the gtin identifier
-                    if key != "gtinIndicatorDigit"{
                         // If could parse ai, continue and do the loop once again
                         if(parseApplicationIdentifier(applicationIdentifier, data: &data!)){
                             foundOne = true
                             continue
                         }
-                    }
                 }
                 // If no ai was found return false and keep the lastParseSuccessfull to false -> This will make validate() fail as well
                 if !foundOne{

        if(data.startsWith(ai.identifier)){
            let pai = GS1BarcodeParser.parseGS1ApplicationIdentifier(ai, data: data)
            //            ai = GS1BarcodeParser.parseGS1ApplicationIdentifier(ai, data: data)
            // Fixes issue where two AIs have the same identifier (TODO: should maybe get rid of gtinIndicatorDigit)
            if  pai.identifier == "01"{
                let digit = GS1BarcodeParser.parseGS1ApplicationIdentifier(self.applicationIdentifiers["gtinIndicatorDigit"]!, data: data)
                applicationIdentifiers["gtinIndicatorDigit"] = digit
            }
            data =  GS1BarcodeParser.reduce(data: data, by: ai)!
            
            return true

    public var applicationIdentifiers = [
        "serialShippingContainerCode": GS1ApplicationIdentifier("00", length: 18, type: .AlphaNumeric),
        "gtin": GS1ApplicationIdentifier("01", length: 14, type: .AlphaNumeric),
        "gtinOfContainedTradeItems": GS1ApplicationIdentifier("02", length: 14, type: .AlphaNumeric),
        "lotNumber": GS1ApplicationIdentifier("10", length: 20, type: .AlphaNumeric, dynamicLength: true),
        "productionDate": GS1ApplicationIdentifier(dateIdentifier: "11"),
