Fixed crazy looping
Debugging mode for vm