$max_repeat = 2;