- Added IT for hostname
- Refactored code.