Refactored url_stat