Implemented server-side code for story splitting.