Fixed link function, hopefully again..