                     for purchase in purchases {
                         
                         guard let purchaseExpirationDate = purchase[self.keyExpirationDate] as? NSDate else {
-                            print("Weird, couldn't find a purchase for \(purchase.recordID)")
+                            print("Weird, couldn't find an expiration date for \(purchase.recordID).")
                             continue
                         }
                         
                         // If there's no earliest purchase date
                         guard let previousExpirationDate = expirationDate else {
                             expirationDate = purchaseExpirationDate
+                            
                             continue
                         }
                         
-                        if purchaseExpirationDate.timeIntervalSinceDate(previousExpirationDate) < 0 {
+                        if purchaseExpirationDate.timeIntervalSinceDate(previousExpirationDate) > 0 {
+                            print("\(purchaseExpirationDate) is after \(previousExpirationDate)")
                             expirationDate = purchaseExpirationDate
                         }
                     }
                 }
-                
+                else {
+                    print("Found no prior purchases for user.")
+                }
+                
+                print("Latest expiration date \(expirationDate)")
+                self.expirationDate = expirationDate
                 completionHandler(expirationDate)
             })
         }

                let components : NSDateComponents = NSDateComponents()
                components.month = months
            
                expirationDate = self.gregorianCalendar?.dateByAddingComponents(components, toDate: date, options: .WrapComponents)
            }
        }
        

            }
            
            let count = userIDs.count

            self.patronCount = count
            completionHandler(count: count, error: error)
        }
