Change if to switch and force use of quality option