         }
         self.node = node
     }
-
+    
     // MARK: - Methods
-
+    
     /// Start recording
     open func record() throws {
         if recording {
             print("AKNodeRecorder Warning: already recording !")
             return
         }
-
-
+        
+        
         #if os(iOS)
             // requestRecordPermission...
             var permissionGranted: Bool = false
-
+            
             AKSettings.session.requestRecordPermission() {
                 (granted: Bool)-> Void in
                 if granted {

            }
            node!.avAudioNode.removeTap(onBus: 0)
            print("Recording Stopped.")

        } else {
            print("AKNodeRecorder Error: input node is not available")
        }
    }


    /// Reset the AKAudioFile to clear previous recordings
    open func reset() throws {

        // Stop recording
        if recording {
            stop()
        }

        // Delete the physical recording file
        let fileManager = FileManager.default
        let settings = internalAudioFile.processingFormat.settings
        let url = internalAudioFile.url

        do {
            try fileManager.removeItem(atPath: audioFile!.url.absoluteString)
        } catch let error as NSError {
            print("AKNodeRecorder Error: cannot delete Recording file:  \(audioFile!.fileNamePlusExtension)")
            throw error
        }

        // Creates a blank new file
        do {
            internalAudioFile = try AKAudioFile(forWriting: url, settings: settings)

    ///
    public init(node: AKNode = AudioKit.output!,
                file: AKAudioFile? = nil) throws {
        
        // AVAudioSession buffer setup
        
        if file == nil {
            // We create a record file in temp directory
            do {
