Improved Task handling and vmm