Refactoring install command