Added feature to group files when spliting