Adding option to set hostname from a config file