How to set quality of output.