Getting Optimal Degree looks janky, but functional.