Work on detecting multiple periods.