Add performance calculation routines