Identify periodic sequences (#893)