Prep everything for link