Make some changes to auto-threshold to hopefully improve it.