Improved composite error reporting. Added sample.