Changed data structure from Vector to ArrayList.