Implemented decoding of vectors.