Vectorized functions.