Both of you are correct.
We are in the process of making further improvements. In particular, the points raised by you, viz.,
1. Estimating the height required in advance
2. Returning the remaining text
are two issues at the top of our mind.
We will keep you all informed about the progress.