Added flag check to exclude races from total level