Adding key refresh interval as configuration option.