Better period searching