Finish the surrounding text implementation