Controll loop now more complex.