First stage of linking