Refactors performance indicator function.