Expanded the grammar with repetitions.