Increased degree max to 1000 in root finding.