Removed debug Console.Writeline and redundant related code