Simplified vm a bit.