The scripts seems to be unstable calculating more than 5 grids. Now, the scripts only let the user get 4 subgrids level.