Added getLinks method