added max completion distance score to filewritten stats