Added identical check of streamUrl and debug output