Modified the vector implementation to be less retarded.