Use different method instead of opts for state param.