Apply functions to blocks of files
