Minimal nmkEngine implementation