Some changes to make extending the tool preferences doable.