Max files to process

@hajoeichler please review