                 previewLayer:videoPreviewLayer)
         }
         
-        if #available(iOS 10.0, *) {
-            let captureDevice:AVCaptureDevice = AVCaptureDevice.defaultDevice(
+        startSession()
+    }
+    
+    private func startSession()
+    {
+        let captureDevice:AVCaptureDevice?
+        
+        if #available(iOS 10.0, *)
+        {
+            captureDevice = AVCaptureDevice.defaultDevice(
                 withDeviceType:AVCaptureDeviceType.builtInWideAngleCamera,
                 mediaType:kMediaType,
                 position:devicePosition)
-        } else {
-            // Fallback on earlier versions
+        }
+        else
+        {
+            
         }
         
         let tryCaptureDeviceInput:AVCaptureDeviceInput?

        }
    }
    
    private func startSession()
    {
        let captureSession:AVCaptureSession = AVCaptureSession()
        captureSession.sessionPreset = kSessionPreset

                self?.queue.async
                { [weak self] in
                    
                    self?.startPreview()
                }
            }
            else
