Add optional types to function parameters.