Modified main for vid links and offsets list