Costs and newUserFunction