Updated language detection to use updated process_url method.