Changes to case creation logic and fix for possible frame capture concurrency bug.