Project of main loop.