Updated text impl to reflect new API changes.