Helper and refactoring