Added time measurement.