Moved some functions into driver class for vegas.c (nw)