Make some improvements to the Launch URL Function.