Minor changes to make examples finish faster.