Added loadingModal and pausedModal.
Disabled messaging after next_period is called.