Added a funtion argument to parse URL.