Changed logging to use the console