Added throwExceptionIfToMuchFiles