Refactors URLStream event invocation