Simanneal seems to be working, but not returning correct value...