Changed Console.WriteLine to Debug.WriteLine