Thortlled bagmaker to avoid openfile limit.