Updated validation code to use stockpile

v1.8.0