Change default to inf=nothing, enable inf=number to handle non-infinite target number