Time interval is added and tested.