Fixed bug with disabling messaging at end of period.