This should be better than for loop