Implemented performance measurement.