Fixed Console.Writeline statement to print the correct endpoint name