Switch from ~[] to Vec