Add links to helper script, instead of inlining it.
Add code inline again, R will complain, but run.
Clean up paths.