Refactoring init file