Add significance check to period detection algorithm.