Removed all code relating to linking. Going to re-write.