Part of mgr-main.