Adding annealing functions