Added loop validation.