Added HOSTS functionality