Fixed crashes in the example.
Added LimitLines feature.