Adding console logging to example