Hi. I hope you can get this figured out. It might be helpful to know what the pattern is for and maybe a few rows from the pattern including the row where KS and PS occur. Sons like you are unsung heroes.
This is the last time I'm frogging this project for the last time.