Fixed degree function - now running with fewer counts, wipeee