Some changes to vector.mod