Extended validation script to use from cmd line