Added support for remember about the last output format choosen.
Fixed the wrong way I used a variable.