Changed self.period to be booleans