Added ability to change output level