Merge branch 'develop'
Add a parameter to reset SDES

This parameter provides better control about resetting the SDES context.