If these attributes are not specified, the behavior is exactly like before. This change makes it also easier to regression test this function, since the behavior does not necessarily depend on a site's parameter settings.
The function was also modernized, new regression tests were added.