More bugfixes in producer rewrite.
Also, added some debug output, and modified analyzer configs.