Speed test and small fixes in examples.