Adds external path validation code