Make degree dynamic