         })
     }
 
-    private func focusCamera(toPoint: CGPoint) -> Bool {
+    private func focusCamera(to point: CGPoint) -> Bool {
 
         guard let device = cameraDevice else { return false }
-
-        guard let focusPoint = (layer as? AVCaptureVideoPreviewLayer)?.captureDevicePointOfInterestForPoint(toPoint) else { return false }
 
         do {
             try device.lockForConfiguration()

        }

        if device.focusPointOfInterestSupported {
            device.focusPointOfInterest = focusPoint
        }

        if device.isExposureModeSupported(.ContinuousAutoExposure) {

        }
        
        if device.exposurePointOfInterestSupported {
            device.exposurePointOfInterest = point
        }
        
        device.unlockForConfiguration()
