Use features.forEach instead of for loop