More functions into vacutils.py