Added methods to vector.