Uses the url module for better parsing