Refactor console (now called 'log' internally)