     // MARK: - Navigation
     
     override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
-        print("JAMVC: Preparing for Segue. Current state:", self.state)
+        print("JAMVC: Preparing for Segue. Current state:", state)
         // FIXME: save the performance if the timer hasn't run out.
-        self.jamming = false // stop jamming.
+        jamming = false // stop jamming.
         if state == ChirpJamModes.recording {stopRecording() }
         if state == ChirpJamModes.playing { stopPlayback() } // stop any possible playback.
         if let barButton = sender as? UIBarButtonItem {
             // TODO: Is this check actually used?
             if savePerformanceButton === barButton {
                 print("JAMVC: Save button segue!")
-                if let recordView = self.recordView {
-                    if let performance = recordView.performance {
+                if let recordingView = self.recordingView {
+                    if let performance = recordingView.performance {
                         // Adding performance to clouad
                         appDelegate.performanceStore.addNew(performance: performance)
                         // Reset view controller
-                        self.newRecordView()
+                        newRecordingView()
                         
                         // TODO: Maybe it is best to delete the view controller to save memory?
                         

    var progressTimer : Timer?
    /// Storage of the original performance for a reply.
    var performanceViews : [ChirpView] = [ChirpView]() // Previous performances, should be populated if this is a reply
    var recordView : ChirpView? //
    /// Addition ChirpView for storage of the original performance for a reply.
    var replyto : String?
    /// App delegate - in case we need to upload a performance.
    let appDelegate = UIApplication.shared.delegate as! AppDelegate
    /// Dropdown menu for selecting SoundScheme
    let soundSchemeDropDown = DropDown() // dropdown menu for soundscheme
    
    @IBOutlet weak var replyButton: UIButton!
    @IBOutlet weak var playButton: UIButton!

    // Only needed to debug view layouts.
    //    override func viewDidLayoutSubviews() {
    //        print("Laid Out Subviews.")
    //        print("JAMVC: Main ChirpView frame:", chirpeySquare.frame.size)
    //        print("JAMVC:Reply ChirpView frame:", replyToPerformanceView?.frame.size ?? "None Available")
    //        print("JAMVC:Reply ChirpView comod:", replyToPerformanceView?.contentMode ?? "None Available")
    //    }
    
    
