Added a spinbox for selecting the time interval