Added stopwatch to measure computation time.