Using array list instead of set to keep order of links.