Major overhaul of convert2vector functionality.