Better logging in example app.