Added a missing import
Fixed waitForGreenlet