Using a main loop now.