Improvements to prevtext