Actually define the event loop in play for queued tasks