Updated reference to costs to allow checking for cost-defined
permission