Better functioning link function