Refactoring and improved Algorithm