Added global set_auto...() methods including unit tests.