Improved interface and examples.