Use function in run-recv.

Fix invocation of run-recv, I think.  Not tested completely.
Add comment.