Made hostname configurable.