changing this will break doctests. Run `make test-doc` to check.

Also n_times is used at different places. If we decide to rename it we should do it everywhere.