Save and restore GlobalOptions