Removed unnecessary degree calculation