Updates to FindDegree

Fixed up code in FindDegree file