Changed all Console.WriteLines to Logging.Writes