Configuring the ND detection function