Modified split-and-nrepl function