Could this be vectorized?