Improvements to validation method and more examples