Optimizing the Heat treatment of Rare Earth-Transition Metal Sintered Magnets