Main loop near to be done