Modified detect