Correction to check for known endpoint