Trivial optimization in example code.