Console.ReadLine() changed to wait()