Add opt.detective for customizing detective