Experimental code for adding links

This implementation is only intended to learn what the difficulties
would be to generate this kind of code at runtime.