Added reader and writer functions for vector type