Added pattern generator