Added chkvmstart() function