Add foldnestmax