 // Create a queue to run blocks in parallel
 let queue = DispatchQueue(label: "hello", attributes: .concurrent)
 let group = DispatchGroup()
+let lock = DispatchSemaphore(value: 1)
+var completeLoops:Int = 0
+var yesVotes:Int = 0
+var noVotes:Int = 0
 
 // Block to be scheduled
 func code(block: Int, loops: Int) -> () -> Void {

    }
  } else {
    switch arg {
    case "-c", "--concurrency", "-e", "--effort", "-l", "--lhs", "-ln", "--lhs_num", "-r", "--rhs", "-rn", "--rhs_num", "-n", "--num_loops":
      param = arg
    case "-d", "--debug":
      DEBUG = true

      CONCURRENCY = parseInt(param: _param, value: arg)
    case "-e", "--effort":
      EFFORT = parseInt(param: _param, value: arg)
    case "-t", "--time":
      TEST_DURATION = parseInt(param: _param, value: arg)
    case "-l", "--lhs":
      LHS = arg
    case "-r", "--rhs":
