Configuring discovery