Added a two-pass period sweep