Refactoring core logic