Deleted this getLinks. Just passed the class's variable outLinks to all instances of getLinks.