Update snippets for better logging