Script for making link lines