Loop conditons finished