Improve example with lots of printf statements.