Working version, added term infomation.