Allow to change the choking algorithms

Closes #1938.