Change maximum value of history length from 500 to 1000