Modulus is totally the secret sauce. You just reduced my 2 hour struggle to figure that out into a handful of code. Thanks!