Added code for extracting anchor text.