Improved validation with config and documentation.