         
         let queue = DispatchQueue.global()
         peripheralManager = CBPeripheralManager(delegate: self, queue: queue)
-//        if let manager = peripheralManager {  // Is this needed? delegate is set above
-//            manager.delegate = self
-//        }
     }
     
     

class ViewController: UICollectionViewController
{
    fileprivate var peripheralManager: CBPeripheralManager?
    fileprivate let uuid = UUID()
    fileprivate let identifier = Bundle.main.bundleIdentifier!
    fileprivate var major: CLBeaconMajorValue = 1
    fileprivate var minor: CLBeaconMinorValue = 0

            print("peripheralManager did start advertising successfully")
            
          let message = "Successfully set up your beacon. " +
          "The unique identifier of the \(beaconServiceName) service is: \(proximityUUID)"

          let controller = UIAlertController(title: "iBeacon",
            message: message,
