$maxfile

Replace the hardcoded limit by $maxfile