Added hostConfig struct and functions