Work in progress.
Fix for the flash mode.