Made Sigmoid and SimAnnealing into function handlers.