Minor edits to analysis scripts.
Fixed bug in hack to stabilize iterations.