Easier way to determine URL