Changed effect selection to the more general method.