Implement reasonable script validation.