Did some more work on the window flash detector.

Also some minor changes to the bar.