Isolation implemented and tested.

Flushes and sampling rate checks also added.