It is a double curl, piping from one to the other for the pull<->push of the data.
But I'll wrap it in Perl for logging, error check, QC counts, etc, which will make it far more functional and trustworthy than he ever was.