Move linking into to the top of file.