Refactored and enhanced installation process.