Created linksParser function