Added a setting and documented the function