Improve efficiency of url adding