Adding switch-to-process-buffer function