Changing loops and expressions to use sequence vectors.