Make sure that the autodiscovery only runs once.