The big console.log to ui.write change, closes #11