Tidied up generate script and now the link script uses the local print
generator