Simplify it a little bit by combining two sections regarding the flash type. Thanks to @alphaFred for suggesting it.