Finding sync of various periods. I'm sure there's a very straightforward non-brute force solution to this.