Converted polytope stuff to newvec.