Linkage working, but not writing correct links...