Added more link code and updated ks