Bug fix and documentation.