Cleanup of new vb function.