Funkcie k regulácii chodu programu