Improve the code for hyperlinked serialiser.