Added getTerms method.