Fixed one of the problems that I was having with the shift pattern recognition.