Added functionality to the stopwatch.