Add periodic flag to constructor. 2nd attempt.