Added a more gradual SA test cooling function