Updated for different degrees.