Simplify example code where possible.