Limiting the number of files opened