Rough working version of sitemap mode