Changes made after running the program several times in order to assure 'correct' behaviour