The method is used in Program.Main.