Added multiple pattern generation
Added multiple pattern generation