Auto-commit from Yao's script