Added flash mode