Update to Stats Repository Function

Update to Stats Repository Function