                         threshold = maxThreshold
                     }
                 }
+                
+                if (arguments [i].range(of: "cv=") != nil)
+                {
+                    maxCV = Int (arguments[i].replacingOccurrences(of: "cv=", with: ""))
+                    minCV = maxCV
+                } else if (arguments [i].range(of: "cv<") != nil) {
+                    maxCV = Int(arguments[i].replacingOccurrences(of: "cv<", with: "")) ?? 5 - 1
+                } else if (arguments [i].range(of: "cv>") != nil){
+                    minCV = Int(arguments[i].replacingOccurrences(of: "cv>", with: "")) ?? -1 + 1
+                } else if (arguments [i].range(of: "cv<=") != nil) {
+                    maxCV = Int(arguments[i].replacingOccurrences(of: "cv<=", with: ""))
+                } else if (arguments[i].range(of: "cv>=") != nil) {
+                    minCV = Int(arguments [i].replacingOccurrences(of: "cv>=", with: ""))
+                }
             }
         }
         

        var totalToCheck: Int!
        let maxThreshold = 100
        var threshold: Int! = maxThreshold
        
        if let total = Int(arguments[0]) {
            if (total > 40)

//  Created by Ashish Ahuja on 05/03/17.
//  Copyright © 2017 Ashish Ahuja. All right reserved
//

//TODO:
// 1. Instead of printing the reports in chat send them to Sam's server

import Foundation
import SwiftStack
