This codes implement the L3 link function