Pretty sure we need to vectorize subvectors here.