Loops, calculation, prompt and alert.