Declared UA explicitly as window-level function