Rename variable in function to avoid confusion with type.