Rewrote main server module using asyncio