Renamed customFilename flag to hasCustomFilename.