Some part of acceptTerms code