Script for creating links