Made hostname configurable from configuration files.