Added option to choose update interval.