Added trys and reading host file.