Small modification to link sript