Adjusted annealing algorithm to change in cfg-files.