added original script for validation.