Added reset stats function.