Refactored Ownership graph
Added pref calculation