Move sentence creation to backend