First cut that sort of works. Logs to the console.