Changing the way the pattern is generated