Detection and discrimination