Added more functions for for vm's