Small optimization on project stats