Better performance by simplifying the BeautifulSoup part.