Convert functions to take named parameters.