     (add-hook 'kill-buffer-hook 'live-py-mode-off nil t)
     (add-hook 'after-change-functions 'live-py-after-change-function nil t)
     (live-py-show-output-window)
-    (live-py-after-change-function 0 0 0)
+    (live-py-trace-update)
     (add-hook 'post-command-hook 'live-py-check-to-scroll nil t))
    ;; Turning the mode OFF.
    (t

    (setq-local live-py-parent (directory-file-name
                                (file-name-directory live-py-parent))))
  (setq live-py-dir (file-name-as-directory live-py-dir))
  (live-py-after-change-function 0 0 0))

(defun live-py-set-path()
  "Prompt user to enter extra directories for the Python path."

  (interactive)
  (setq live-py-version (expand-file-name
                         (read-shell-command "Type the python command:")))
  (live-py-trace-update))

(defun live-py-set-dir()
  "Prompt user to enter the working directory."
