Updated code example, added log snippet.