How the discovery phase works