Lots of rewrite, config still needs even more.