Add method to set displayInterval.