Added parse_url_part func.