Add endpoint configuration option
Fix incorrect configuration value being checked