Made hostname optional