-Improved the ownership algorithm