Any thoughts about adding a sitemap feature to allow easy sitemaps from sites?

I've run a couple of programs and they just spider the links out to tens of thousands of pages. If there was a way to limit it to 5000 or so it would be great. Any suggestions would be appreciated.