Major breakthrough. Got generators and promises working perfectly.