Fix trailing commas in the parameters list