Create appropriate io loops. Initialize instances.