- Renamed function setFlash with addFlash
- Added a control on flash type