Add global loss tracker