     }
     
     func commentPostedSuccessfully(notification: NSNotification) {
+        // Comment posted. Post notification and pop view controller.
         dispatch_async(dispatch_get_main_queue(), { () -> Void in
             SwiftSpinner.hide()
             NSNotificationCenter.defaultCenter().postNotificationName("DataUpdateRequired", object: nil)

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        let tapGesture = UITapGestureRecognizer(target: self, action: #selector(CommentComposerViewController.tapOutsideTextView(_:)))
        view.addGestureRecognizer(tapGesture)
        formatTextView()
        commentTextView.becomeFirstResponder()
        
        // Register to be notified if the keyboard is changing size
        NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(CommentComposerViewController.keyboardWillShowOrHide(_:)), name: UIKeyboardWillShowNotification, object: nil)
        NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(CommentComposerViewController.keyboardWillShowOrHide(_:)), name: UIKeyboardWillHideNotification, object: nil)
        
        chargingStationTitleLabel.text = chargingStationTitle
        let newCommentString = NSLocalizedString("New Comment", comment: "New Comment")
        self.title = newCommentString
        self.submitButton.layer.cornerRadius = 5.0
    }
    

    }
    
    func commentNotPosted(notification: NSNotification) {
        // Notify user that the comment was not posted. Notification includes error message.
        if let errorMessage = notification.userInfo?["errorMesssage"] as? NSString {
            SwiftSpinner.show(String(errorMessage), animated: false).addTapHandler({
                SwiftSpinner.hide()
