Add some code for dealing with paginated text submissions.