Switch to string API. Reduce dependencies.