Update documentation.
Fix group check.

Fixes #4816