Renamed parameter to types instead of completion_fields