Implement better URL extraction.