Implements mutual exclusion of interval recording

Does mutual exclusive recording of intervals.

Refs #6, #23