Fix #1

Automatic flash mode is now used instead of torch mode