And fixing another bug - forgot to actually use the patternLoc variable
I set up...