Make max threads configurable and change default to 25.