Initial migration to asyncio.