Initial implementation for Text API.