Avoid generators and lambdas