Shouldn't this be `detect`, not `select`?