Implemented performance counter