Pull request for all the remaining patches, including the new performance monitors.

Why do we wait after a flush?