Bug fixes and new example.