Add modifyMaxSuccess, modifyMaxDiscardRatio and modifyMaxSize (fix #137)