 
     // The node we record from
     private var node: AKNode?
+    
     // The file to record to
-    private var tape: AKAudioFile
+    private var internalAudioFile: AKAudioFile
 
     // the size of the recording buffer
     // Not tested, default is 1024

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

        // Delete the current file tape
        let fileManager = NSFileManager.defaultManager()
        let url = tape.url
        let settings = tape.processingFormat.settings

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

        // Creates a blanck new tape
        do {
            tape = try AKAudioFile(forWriting: url, settings: settings)
            print ("AKNodeRecorder: tape has been cleared")
        } catch let error as NSError {
            print ("AKNodeRecorder Error: cannot create an new tape from file:  \(tape.fileNamePlusExtension)")
            throw error
        }
    }

    // MARK: - public vars
    // True if we are recording.
    public var isRecording: Bool {
        return recording
    }

    // True if we are recording.
    public var recordedDuration: Double {
        return tape.duration
    }

    // return the tape as an AKAudioFile for reading
    public var audioFile: AKAudioFile? {

        var tapeForReading: AKAudioFile
        do {
            tapeForReading = try AKAudioFile(readAVAudioFile: tape)
            return tapeForReading
        } catch let error as NSError {
            print ("Cannot create readingTape")
            print ("Error: \(error.localizedDescription)")
            return nil
        }


    private let previousAVAudioSessionCategory: String?

    /// Initialize the node recorder
    ///
    /// - parameter node:       Node to record from
    /// - parameter file:       Audio file to record to
    /// - parameter bufferSize: Size of the buffer to use
    ///
    public init(node: AKNode = AudioKit.output!,
                file: AKAudioFile? = nil,
                buffer bufferSize: UInt32 = 1024  ) throws {


        // requestRecordPermission...
